﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yunwei.Domain.Models;

namespace Yunwei.IBizLogic
{
    public interface IChefService : IBaseService<Chef>
    {
        /// <summary>
        /// 查询数据列表
        /// </summary>
        /// <param name="number">返回记录数量</param>
        /// <param name="name">名称</param>
        /// <param name="restaurant_Id">所属餐馆</param>
        /// <param name="orderCode">排序码</param>
        /// <returns>数据列表</returns>
        IQueryable<Chef> FindList(int number, string name, int restaurant_Id, int orderCode);


        /// <summary>
        /// 查询分页数据列表
        /// </summary>
        /// <param name="totalRecord">总记录数</param>
        /// <param name="pageIndex">页码</param>
        /// <param name="pageSize">每页记录数</param>
        /// <param name="name">名称</param>
        /// <param name="restaurant_Id">栏目ID【不使用设0】</param>
        /// <param name="orderCode">排序码</param>
        /// <returns>分页数据列表</returns>
        IQueryable<Chef> FindPageList(out int totalRecord, int pageIndex, int pageSize, string name, int restaurant_Id, int orderCode);


        /// <summary>
        /// 排序
        /// </summary>
        /// <param name="entitys">数据实体集</param>
        /// <param name="roderCode">排序代码[默认：ID降序]</param>
        /// <returns></returns>
        IQueryable<Chef> Order(IQueryable<Chef> entitys, int orderCode);
    }
}
